/**
 * 错误码枚举
 */
export enum ErrorCode {
  // 成功
  SUCCESS = 0,

  // 通用错误
  COMMON_ERROR = 10000,
  PARAMS_ERROR = 10001,
  NOT_FOUND = 10002,
  UNAUTHORIZED = 10003,
  FORBIDDEN = 10004,
  INTERNAL_SERVER_ERROR = 10005,

  // 用户相关错误
  USER_NOT_FOUND = 20001,
  USER_ALREADY_EXISTS = 20002,
  PASSWORD_ERROR = 20003,
  TOKEN_INVALID = 20004,
  TOKEN_EXPIRED = 20005,

  // 数据库相关错误
  DATABASE_ERROR = 30001,

  // 文件相关错误
  FILE_UPLOAD_ERROR = 40001,
  FILE_NOT_FOUND = 40002,

  // 第三方服务错误
  THIRD_PARTY_SERVICE_ERROR = 50001,
}
